package org.i1510.wx.constant;


public class API4GZH {

	
	// 查询公众号粉丝所有分组
	public static final String ACCESS_USERGROUPS_URL = "https://api.weixin.qq.com/cgi-bin/groups/get?access_token=ACCESS_TOKEN";

	// 查询粉丝所在分组
	public static final String ACCESS_USERGROUP_URL = "https://api.weixin.qq.com/cgi-bin/groups/getid?access_token=ACCESS_TOKEN";

	// 查询粉丝基本信息
	public static final String ACCESS_USER_BASEINFORMATION = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

	// 获取关注者列表
	public static final String ACCESS_URSERLIST_URL = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN&next_openid=NEXT_OPENID";

	// 通过code换取网页授权access_token
	public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

	//主动获取access_token的接口地址（GET） 限200（次/天）
	public final static String ACCESS_TOKEN_URL_GET = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
	
	// 刷新token
	public static final String ACCESS_REFRESHTOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";
	
	// 获取code
	public static final String ACCESS_CODE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
	/**
	 * 菜单创建（POST） 限100（次/天）
	 */
	public static String MEMU_CREATE_URL = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

	
	/**
	 * 菜单查询（GET） 
	 */
	public static String MEMU_LIST_URL = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";

	//客服消息
	public static String POST_MESSAGE_URL = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN";
	
}
